/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.isp.complient.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.isp.complient.complient.CalculateSalary;
import za.ac.cput.isp.complient.complient.EducationalHistory;
import za.ac.cput.isp.complient.complient.EmployeeDetails;
import za.ac.cput.isp.complient.complient.Impl.CalculateSalaryImpl;
import za.ac.cput.isp.complient.complient.Impl.EducationalHistoryImpl;
import za.ac.cput.isp.complient.complient.Impl.EmployeeDetailsImpl;

/**
 *
 * @author given
 */
@Configurable
public class AppConfig {
    @Bean(name = "empl")
    public EmployeeDetails employeesDetails(){
        return new EmployeeDetailsImpl();
    }
    
    @Bean (name = "edu")
    public EducationalHistory education(){
        return new EducationalHistoryImpl();
    }
    
    @Bean (name = "sal")
    public CalculateSalary salaryCalc(){
        return new CalculateSalaryImpl();
    }
}
